import request from '@/utils/request'

export default {
  methods: {
    getAllField(params, url = this.getAllFieldUrl) {
      return request({
        url,
        method: 'get',
        params
      })
    },
    addFieldConfig(params, url = this.addFieldConfigUrl) {
      return request({
        url,
        method: 'post',
        headers: {
          "Content-Type": "application/x-www-form-urlencoded"
        },
        data: params
      })
    },
  }
}
